Accusoft.OCRXpress.Java
Distributing OCR Xpress for Java

Regardless of your deployment model, the first step in deploying your application is to package the required OCR Xpress for Java runtime components.

The contents of the “Accusoft/OCRXpressJava<MajorVersion>-64/bin” directory of your OCR Xpress for Java installation are the OCR Xpress for Java runtime components. The following files are required for deployment:

Distributing with Maven

Accusoft hosts a public maven repository at http://mvn.accusoft.com that can be used to distribute the required dependencies. The samples include a POM file that uses this repository. In order to use this, first add the Accusoft repository to your list:

pom.xml
Copy Code
…
  <repositories>
    <repository>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
      <snapshots>
        <enabled>false</enabled>
        <updatePolicy>never</updatePolicy>
        <checksumPolicy>fail</checksumPolicy>
      </snapshots>
      <id>accusoft-group</id>
      <name>Accusoft Maven Caching Proxy</name>
      <url>http://mvn.accusoft.com/</url>
      <layout>default</layout>
    </repository>
  </repositories>
…

Once the repository is added, the only two required dependencies can be added to the project:

pom.xml
Copy Code
…
  <dependencies>
    <dependency>
        <groupId>com.accusoft.ocrxpress</groupId>
        <artifactId>ocrxpressjava</artifactId>
        <version>3.2</version>
    </dependency>
    <dependency>
        <groupId>com.accusoft.ocrxpress</groupId>
        <artifactId>tessdata</artifactId>
        <version>1.0</version>
        <scope>runtime</scope>
    </dependency>
  </dependencies>
…

There are currently two available tessdata dependencies:

  • tessdata – includes all files for all languages supported by OCRXpress
  • tessdata-english – includes only the English language files. Use this artifact to reduce the overhead of distributing your application if you will only be recognizing text in English.

 

 

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback